It parses image files header and return image size.
